package com.company.cloud.article.modules.mgr.controller.req;

import java.util.List;
import java.util.Set;

import javax.validation.constraints.NotEmpty;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.constant.BaseConstant.YNEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ArticleMgrSaveParam extends BaseParam {

	@ApiModelProperty(value = "公司编号", required = true)
	@NotEmpty(message = "公司编号不能为空")
	private String companyNo;

	@ApiModelProperty(value = "标题", required = true)
	@NotEmpty(message = "标题不能为空")
	private String title;

	@ApiModelProperty(value = "内容", required = true)
	@NotEmpty(message = "内容不能为空")
	private String content;


	@ApiModelProperty(value = "标题英文")
	private String titleEn;

	@ApiModelProperty(value = "内容英文")
	private String contentEn;

	@ApiModelProperty(value = "摘要英文")
	private String summaryEn;

	@ApiModelProperty(value = "摘要")
	private String summary;

	@ApiModelProperty(value = "缩略图")
	private List<String> thumbnail;

	@ApiModelProperty(value = "样式")
	private String style;

	@ApiModelProperty(value = "是否评论(YNEnum)", required = true)
	@NotEmpty(message = "是否评论不能为空")
	private String commentStatus = YNEnum.NO.getCode();

	@ApiModelProperty(value = "SEO关键字")
	private String metaKeywords;

	@ApiModelProperty(value = "SEO描述信息")
	private String metaDescription;

	@ApiModelProperty(value = "备注信息")
	private String remarks;

	@ApiModelProperty(value = "排序")
	private Integer orders = 0;

	@ApiModelProperty(value = "标签")
	private List<Integer> tags;

	@ApiModelProperty(value = "是否发布到平台", required = true)
	@NotEmpty(message = "是否发布到平台不能为空")
	private String isPubPlatform = YNEnum.NO.getCode();

	@ApiModelProperty(value = "分类ID")
	private List<Integer> categoryIds;

	@ApiModelProperty(value = "上下架状态", required = true)
	@NotEmpty(message = "上下架状态不能为空")
	private String state = YNEnum.NO.getCode();

	@ApiModelProperty(value = "显示渠道")
	private Set<String> showChannel;

	@ApiModelProperty(value = "是否置顶", required = true)
	@NotEmpty(message = "是否置顶不能为空")
	private String isTop = YNEnum.NO.getCode();

}
